import { get, post } from "../utils/http.js";

export function swiper(num,size){
    return post("/api/cms/article/open/banner/list",{'pageNum':num,'pageSize':size})
}
export function hotNews(num,size){
  return post("/api/cms/article/open/hot/list",{'pageNum':num,'pageSize':size})
}
export function hotNewDetails(id){
  return get(`/api/cms/article/open/detail/${id}`)
}
export function LoginFunction(username,password){
  return post("/api/login",{'username':username,'rememberMe':true,'password':password})
}
export function lookMyself(){
  return get(`/api/login-user/info`)
}